﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="changePasswordTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Blue - Modifica password
</asp:Content>
<asp:Content ID="changePasswordContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Modifica password</h2>
    <p>
        Utilizza il modulo seguente per modificare la tua password
    </p>
    <p>
        La nuova password deve contenere un minimo di
        <%=Html.Encode(ViewData["PasswordLength"])%>
        caratteri.
    </p>
    <%= Html.ValidationSummary(Messages.ErrorInsertingData)%>
    <% using (Html.BeginForm())
       { %>
    <div>
        <fieldset>
            <legend>Dati dell'account</legend>
            <p>
                <label for="currentPassword">
                    Password attuale:</label>
                <%= Html.Password("currentPassword") %>
                <%= Html.ValidationMessage("currentPassword") %>
            </p>
            <p>
                <label for="newPassword">
                    Nuova password:</label>
                <%= Html.Password("newPassword") %>
                <%= Html.ValidationMessage("newPassword") %>
            </p>
            <p>
                <label for="confirmPassword">
                    Conferma nuova password:</label>
                <%= Html.Password("confirmPassword") %>
                <%= Html.ValidationMessage("confirmPassword") %>
            </p>
            <p>
                <input type="submit" value="Modifica Password" />
            </p>
        </fieldset>
    </div>
    <% } %>
    <p>
        <%= Html.ActionLink("Torna al profilo", "Display", "Umpire", new {}, new {}) %>
    </p>
</asp:Content>
